$(function () {
    initDateTime('#statDate');
});

function doFunction1() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function1',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}
function doFunction2() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function2',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}
function doFunction3() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function3',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}
function doFunction4() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function4',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}
function doFunction5() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function5',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}
function doFunction6() {
    var statDate = $('#statDate').val();
    if (!statDate || statDate == '') {
        toastr.error('请先选择时间');
        return;
    }
    var postData = {
        statDate : statDate,
    };
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function6',
        dataType: 'json',
        contentType: "application/json",
        data : JSON.stringify(postData),
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}

function doFunction7() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function7',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}

function doFunction8() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function8',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}

function doFunction9() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function9',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}

function doFunction10() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function10',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}

function doFunction11() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function11',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}

function doFunction12() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function12',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}

function doFunction13() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function13',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}

function doFunction14() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function14',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}

function doFunction15() {
    showLoading();
    $.ajax({
        type: 'post',
        url: basePath + 'unKnown/function15',
        dataType: 'json',
        contentType: "application/json",
        success : function (data) {
            hideLoading();
            if(data && data.result){
                toastr.success('成功');
            }else if(data&&!data.result){
                toastr.error(data.message);
            }else{
                toastr.error('失败');
            }
        },
        error: function (request) {
            hideLoading();
            toastr.error(common_system_error);
        }
    });
}